import { ConfigProvider } from 'antd';
import zhCN from 'antd/locale/zh_CN';
import ReactDOM from 'react-dom/client';
import { HashRouter } from 'react-router-dom';//BrowserRouter
import './assets/iconfont/iconfont.css';
import './index.css';
import Router from './router/index';
import AuthRoute from '../src/router/RequireAuth'

ReactDOM.createRoot(document.getElementById('root') as HTMLElement).render(
  <ConfigProvider locale={zhCN}>
    <HashRouter>
      <AuthRoute>
        <Router></Router>
      </AuthRoute>
    </HashRouter>
  </ConfigProvider>
);
